package cc.mrbird.alarm.service;

import cc.mrbird.alarm.domain.AlarmInfo;
import cc.mrbird.common.domain.QueryRequest;
import cc.mrbird.common.service.IService;
import org.springframework.cache.annotation.CacheConfig;

import java.util.List;

@CacheConfig(cacheNames = "AlarmInfoService")
public interface AlarmInfoService extends IService<AlarmInfo> {
    List<AlarmInfo> findAlarmInfoList(AlarmInfo alarmInfo, QueryRequest request);

    void add(AlarmInfo alarmInfo);

    List<AlarmInfo> findAllTypeAndId();

    List<AlarmInfo> fingAllByIds(String group_concat,String nextTime);

    List<AlarmInfo> findAllByAlarmType();

    List<AlarmInfo> fingAllByIdsAndType(String group_concat);
}
